﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CommentList.aspx.cs" Inherits="WebApp.Management.Product.CommentList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        
        <asp:GridView ID="gvCommentList" runat="server" AutoGenerateColumns="False" 
            onpageindexchanging="gvCommentList_PageIndexChanging">
            <Columns>
                <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"ProductComment.aspx?PID="+Eval("ProductId") %>'>编辑该产品的评论</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="产品名" DataField="ProductName"/>
                <asp:BoundField HeaderText="产品编号" DataField="ProductCode" />
                <asp:BoundField HeaderText="评论日期" DataField="CreateTime" />
                <asp:BoundField HeaderText="评论内容" DataField="Comment" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
